<template>
  <div class="goods">
    <PageTable :pageContentConfig="pageContentConfig" pageName="goods">
      <template #image="scope">
        <el-image
          :src="scope.row.imgUrl"
          style="width: 60px; height: 60px"
          :preview-src-list="[scope.row.imgUrl]"
        ></el-image>
      </template>

      <template #oldPrice="{ row }">
        <span>￥{{ row.oldPrice }}</span>
      </template>
    </PageTable>
  </div>
</template>

<script lang="ts">
import PageTable from '@/components/PageTable'
import { defineComponent } from 'vue'
import pageContentConfig from './config/pageContentConfig'

export default defineComponent({
  components: { PageTable },
  name: 'goods',
  setup() {
    return { pageContentConfig }
  }
})
</script>

<style scoped></style>
